package com.hfb.mashibing.alip8.interview.jvm.classloader;

/**
 * @author hfb
 * @Description 详细分析：https://yuhongliang.blog.csdn.net/article/details/111799834
 */

public class Test1 {
    public static void main(String[] args) {
//        count = 2
//        我现在临时值：3
//        最终的打印结果为：3
        System.out.println("最终的打印结果为：" + T.count);

        //System.out.println(T.finalCount);
    }
}
class T {
    public static int count = 2; //0
    public static T t = new T(); // null
    public final static int finalCount = 20; //0

    //private int m = 8;

    private T() {
        System.out.println("T类的无参数的构造方法被调用了！");
        System.out.println("count = " + count);
        count ++;
        System.out.println("我现在临时值：" + count);
        //System.out.println("--" + count);
    }
}



